<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>3dchess: S:/dev/3dchess/src/ai/AIPlayer.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">3dchess
   </div>
   <div id="projectbrief">Basic chess application with OpenGL graphics and AI</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_128a93aeeff33a8423f079f46929dbb3.html">ai</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">AIPlayer.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">    Copyright (c) 2013-2014, Stefan Hacker &lt;dd0t@users.sourceforge.net&gt;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">    All rights reserved.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">    Redistribution and use in source and binary forms, with or without</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">    modification, are permitted provided that the following conditions are met:</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">    1. Redistributions of source code must retain the above copyright notice,</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">    this list of conditions and the following disclaimer.</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">    2. Redistributions in binary form must reproduce the above copyright</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">    notice, this list of conditions and the following disclaimer in the</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">    documentation and/or other materials provided with the distribution.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">    3. Neither the name of the copyright holder nor the names of its</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">    contributors may be used to endorse or promote products derived from</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">    this software without specific prior written permission.</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">    ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">    INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">    CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment">    POSSIBILITY OF SUCH DAMAGE.</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#ifndef AIPLAYER_H</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define AIPLAYER_H</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &lt;mutex&gt;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &lt;atomic&gt;</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &lt;chrono&gt;</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &quot;logic/interface/AbstractPlayer.h&quot;</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &quot;ai/Negamax.h&quot;</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &quot;ai/PolyglotBook.h&quot;</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &quot;core/Logging.h&quot;</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="class_a_i_player.html">   46</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_a_i_player.html">AIPlayer</a>: <span class="keyword">public</span> <a class="code" href="class_abstract_player.html">AbstractPlayer</a> {</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <a class="code" href="class_a_i_player.html#a9c0a74b89435461a79db0ff5298cb72a">AIPlayer</a>(</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <span class="keyword">const</span> <a class="code" href="class_a_i_configuration.html">AIConfiguration</a>&amp; config,</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        <span class="keyword">const</span> std::string&amp; name = <span class="stringliteral">&quot;AIPlayer&quot;</span>,</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <span class="keywordtype">int</span> seed = 5253);</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    ~<a class="code" href="class_a_i_player.html">AIPlayer</a>();</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_a_i_player.html#a336f11fe775c5f06275359f1b58d2c66">start</a>();</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="comment">// See AbstractPlayer</span></div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_a_i_player.html#a8fbcee7ed68698889f139e378a9b0771">onSetColor</a>(PlayerColor color) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_a_i_player.html#a622ad402fe79380c8c9bbc3d37fffc0d">onGameStart</a>(<a class="code" href="class_game_state.html">GameState</a> state, <a class="code" href="class_game_configuration.html">GameConfiguration</a> config) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="keyword">virtual</span> std::future&lt;Turn&gt; <a class="code" href="class_a_i_player.html#a2cc533895dc35ec8f9be82b82aa15418">doMakeTurn</a>(<a class="code" href="class_game_state.html">GameState</a> state) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_a_i_player.html#a9f7ebdaa567caa1fc07bbe8c700546a2">doAbortTurn</a>() <span class="keyword">override</span>;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_a_i_player.html#aa9bf852bdff2b165a002ace01bfad913">onGameOver</a>(<a class="code" href="class_game_state.html">GameState</a>, PlayerColor) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="class_a_i_player.html#ae73dfc179e755891224f5e1c474e4c49">   75</a></span>&#160;    <span class="keyword">enum</span> <a class="code" href="class_a_i_player.html#ae73dfc179e755891224f5e1c474e4c49">States</a> {</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="class_a_i_player.html#ae73dfc179e755891224f5e1c474e4c49a249289b0db864b72a1ae11106059e786">   76</a></span>&#160;        <a class="code" href="class_a_i_player.html#ae73dfc179e755891224f5e1c474e4c49a249289b0db864b72a1ae11106059e786">PREPARATION</a>, </div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="class_a_i_player.html#ae73dfc179e755891224f5e1c474e4c49aa69fe1c54e5531047a05e3cefbdbc9da">   77</a></span>&#160;        <a class="code" href="class_a_i_player.html#ae73dfc179e755891224f5e1c474e4c49aa69fe1c54e5531047a05e3cefbdbc9da">PONDERING</a>, </div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="class_a_i_player.html#ae73dfc179e755891224f5e1c474e4c49a6d239235c0079eeb034a336aa7045d66">   78</a></span>&#160;        <a class="code" href="class_a_i_player.html#ae73dfc179e755891224f5e1c474e4c49a6d239235c0079eeb034a336aa7045d66">PLAYING</a>, </div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="class_a_i_player.html#ae73dfc179e755891224f5e1c474e4c49a50d12883ac67f10acff9c41fcfbcc445">   79</a></span>&#160;        <a class="code" href="class_a_i_player.html#ae73dfc179e755891224f5e1c474e4c49a50d12883ac67f10acff9c41fcfbcc445">STOPPED</a> </div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    };</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <a class="code" href="class_a_i_player.html#ae73dfc179e755891224f5e1c474e4c49">States</a> <a class="code" href="class_a_i_player.html#a865e58555ff227cd1a63b8c9b6327799">getState</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_a_i_player.html#a109b2f4b418e7196a93bc391f20ce081">run</a>();</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_a_i_player.html#acc5941729e02bae189f10d3a8448d043">play</a>();</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    </div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_a_i_player.html#a044e02a8feb80a90490b5ec2ced61fca">ponder</a>();</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_a_i_player.html#a523158ae141f8c4c454a1b22849098be">changeState</a>(<a class="code" href="class_a_i_player.html#ae73dfc179e755891224f5e1c474e4c49">States</a> newState);</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_a_i_player.html#acf5361ba43ee265214109a6ed83bb683">tryFindPromisedTurnInOpeningBook</a>();</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_a_i_player.html#a8ac7018369f552328f40ff95fd839e2e">searchForPromisedTurn</a>();</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_a_i_player.html#a20a4f44cd6a8bbccec3dfeb53a09aba7">performIterativeDeepening</a>();</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_a_i_player.html#a17877bce27d5f2d82ede11600acb99eb">completePromiseWith</a>(<span class="keyword">const</span> <a class="code" href="class_turn.html">Turn</a>&amp; turn);</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    boost::optional&lt;Turn&gt; <a class="code" href="class_a_i_player.html#a0de4ef109b29c2a74f70221727284a93">performSearchIteration</a>(<span class="keywordtype">size_t</span> depth, <a class="code" href="class_game_state.html">GameState</a>&amp; state, <a class="code" href="class_a_i_player.html#ae73dfc179e755891224f5e1c474e4c49">States</a> aiState);</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_a_i_player.html#a96ef820fd422af8d553ea31b9e07464b">canStayInState</a>(<a class="code" href="class_a_i_player.html#ae73dfc179e755891224f5e1c474e4c49">States</a> currentState);</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_a_i_player.html#aacabf05793ca8bc00643a39e7f5e1e64">setTimeLimit</a>(std::chrono::milliseconds limit);</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    </div>
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="class_a_i_player.html#a81dacee1ef54bbcbe984073a6e8bfe4e">  136</a></span>&#160;    std::promise&lt;Turn&gt; <a class="code" href="class_a_i_player.html#a81dacee1ef54bbcbe984073a6e8bfe4e">m_promisedTurn</a>;</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="class_a_i_player.html#a761a3083f8aff7dbe2158146e65d7b5d">  142</a></span>&#160;    std::atomic&lt;States&gt; <a class="code" href="class_a_i_player.html#a761a3083f8aff7dbe2158146e65d7b5d">m_playerState</a>;</div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="class_a_i_player.html#a14d7c67a18fb8419399db94768d349e5">  144</a></span>&#160;    std::mutex <a class="code" href="class_a_i_player.html#a14d7c67a18fb8419399db94768d349e5">m_stateMutex</a>;</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="class_a_i_player.html#a3572a55bf4b787c84e0380891679ba86">  147</a></span>&#160;    <a class="code" href="class_game_state.html">GameState</a> <a class="code" href="class_a_i_player.html#a3572a55bf4b787c84e0380891679ba86">m_gameState</a>;</div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="class_a_i_player.html#a88d1f4adf011416ed9826787cab330f0">  149</a></span>&#160;    <a class="code" href="class_game_state.html">GameState</a> <a class="code" href="class_a_i_player.html#a88d1f4adf011416ed9826787cab330f0">m_ponderGameState</a>;</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div>
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="class_a_i_player.html#a38b6b7486f98ae42c9d0c72a1365d154">  152</a></span>&#160;    <a class="code" href="class_game_configuration.html">GameConfiguration</a> <a class="code" href="class_a_i_player.html#a38b6b7486f98ae42c9d0c72a1365d154">m_gameConfig</a>;</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;</div>
<div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="class_a_i_player.html#a2d3ec6323cc897822a7caf8b293fd2b8">  155</a></span>&#160;    PlayerColor <a class="code" href="class_a_i_player.html#a2d3ec6323cc897822a7caf8b293fd2b8">m_color</a>;</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    </div>
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="class_a_i_player.html#a1513b56c0c0bf9c41d1f3b17f075c2c3">  158</a></span>&#160;    <a class="code" href="class_negamax.html">Negamax&lt;GameState, true, true, true&gt;</a> <a class="code" href="class_a_i_player.html#a1513b56c0c0bf9c41d1f3b17f075c2c3">m_negamax</a>;</div>
<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="class_a_i_player.html#acbf9428bb0dda9a48cc8154dc4011383">  160</a></span>&#160;    std::thread <a class="code" href="class_a_i_player.html#acbf9428bb0dda9a48cc8154dc4011383">m_thread</a>;</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    </div>
<div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="class_a_i_player.html#adbfedcaa126c498fb64f626bfb86b36b">  163</a></span>&#160;    <a class="code" href="class_polyglot_book.html">PolyglotBook</a> <a class="code" href="class_a_i_player.html#adbfedcaa126c498fb64f626bfb86b36b">m_openingBook</a>;</div>
<div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="class_a_i_player.html#aab14d3cfd5bd43c65ca7b18da36f329a">  165</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_a_i_player.html#aab14d3cfd5bd43c65ca7b18da36f329a">m_outOfBook</a>;</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;</div>
<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="class_a_i_player.html#aaa68fd341c6194df95277cca158ce072">  168</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="class_a_i_player.html#aaa68fd341c6194df95277cca158ce072">m_maxIterationDepth</a>;</div>
<div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="class_a_i_player.html#a208377db74365b4c3caa87ef75740773">  170</a></span>&#160;    std::chrono::seconds <a class="code" href="class_a_i_player.html#a208377db74365b4c3caa87ef75740773">m_maxTimeForTurn</a>;</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;</div>
<div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="class_a_i_player.html#ad6527637a5c7015c1629771fa87643a6">  173</a></span>&#160;    std::chrono::high_resolution_clock::time_point <a class="code" href="class_a_i_player.html#ad6527637a5c7015c1629771fa87643a6">m_timeoutExpirationTime</a>;</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;</div>
<div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="class_a_i_player.html#a0e7d916aa3f046ee25ffd72d96fde192">  176</a></span>&#160;    <span class="keyword">const</span> <a class="code" href="class_a_i_configuration.html">AIConfiguration</a> <a class="code" href="class_a_i_player.html#a0e7d916aa3f046ee25ffd72d96fde192">m_config</a>;</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;</div>
<div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="class_a_i_player.html#af1d120a400063b1a8b374c0a17aa20a3">  179</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_a_i_player.html#af1d120a400063b1a8b374c0a17aa20a3">m_hasWinningMove</a>;</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    </div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    Logging::Logger m_log;</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;};</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;<span class="keyword">namespace </span>std {</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;std::ostream&amp; operator &lt;&lt;(std::ostream&amp; stream, <span class="keyword">const</span> <a class="code" href="class_a_i_player.html#ae73dfc179e755891224f5e1c474e4c49">AIPlayer::States</a> s);</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;}</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;<span class="keyword">using</span> AIPlayerPtr = std::shared_ptr&lt;AIPlayer&gt;;</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;<span class="preprocessor">#endif // AIPLAYER_H</span></div>
<div class="ttc" id="class_a_i_player_html_a2cc533895dc35ec8f9be82b82aa15418"><div class="ttname"><a href="class_a_i_player.html#a2cc533895dc35ec8f9be82b82aa15418">AIPlayer::doMakeTurn</a></div><div class="ttdeci">virtual std::future&lt; Turn &gt; doMakeTurn(GameState state) override</div><div class="ttdoc">Asks the player to make his turn. </div><div class="ttdef"><b>Definition:</b> AIPlayer.cpp:119</div></div>
<div class="ttc" id="class_a_i_configuration_html"><div class="ttname"><a href="class_a_i_configuration.html">AIConfiguration</a></div><div class="ttdoc">AI configuration class. </div><div class="ttdef"><b>Definition:</b> GameConfiguration.h:50</div></div>
<div class="ttc" id="class_a_i_player_html_a9c0a74b89435461a79db0ff5298cb72a"><div class="ttname"><a href="class_a_i_player.html#a9c0a74b89435461a79db0ff5298cb72a">AIPlayer::AIPlayer</a></div><div class="ttdeci">AIPlayer(const AIConfiguration &amp;config, const std::string &amp;name=&quot;AIPlayer&quot;, int seed=5253)</div><div class="ttdoc">Creates a new AIPlayer. </div><div class="ttdef"><b>Definition:</b> AIPlayer.cpp:43</div></div>
<div class="ttc" id="class_game_state_html"><div class="ttname"><a href="class_game_state.html">GameState</a></div><div class="ttdoc">Facade class for the game logic, holds the chessboard and the turn generator. </div><div class="ttdef"><b>Definition:</b> GameState.h:44</div></div>
<div class="ttc" id="class_a_i_player_html_a17877bce27d5f2d82ede11600acb99eb"><div class="ttname"><a href="class_a_i_player.html#a17877bce27d5f2d82ede11600acb99eb">AIPlayer::completePromiseWith</a></div><div class="ttdeci">void completePromiseWith(const Turn &amp;turn)</div><div class="ttdoc">Complete the promise and prepare the AI for pondering. </div><div class="ttdef"><b>Definition:</b> AIPlayer.cpp:192</div></div>
<div class="ttc" id="class_a_i_player_html_a38b6b7486f98ae42c9d0c72a1365d154"><div class="ttname"><a href="class_a_i_player.html#a38b6b7486f98ae42c9d0c72a1365d154">AIPlayer::m_gameConfig</a></div><div class="ttdeci">GameConfiguration m_gameConfig</div><div class="ttdoc">Game configuration the AI works with. </div><div class="ttdef"><b>Definition:</b> AIPlayer.h:152</div></div>
<div class="ttc" id="class_a_i_player_html_a1513b56c0c0bf9c41d1f3b17f075c2c3"><div class="ttname"><a href="class_a_i_player.html#a1513b56c0c0bf9c41d1f3b17f075c2c3">AIPlayer::m_negamax</a></div><div class="ttdeci">Negamax&lt; GameState, true, true, true &gt; m_negamax</div><div class="ttdoc">Algorithm used for search. </div><div class="ttdef"><b>Definition:</b> AIPlayer.h:158</div></div>
<div class="ttc" id="class_a_i_player_html_aacabf05793ca8bc00643a39e7f5e1e64"><div class="ttname"><a href="class_a_i_player.html#aacabf05793ca8bc00643a39e7f5e1e64">AIPlayer::setTimeLimit</a></div><div class="ttdeci">void setTimeLimit(std::chrono::milliseconds limit)</div><div class="ttdoc">Sets a time limit that can be checked with. </div><div class="ttdef"><b>Definition:</b> AIPlayer.cpp:263</div></div>
<div class="ttc" id="class_a_i_player_html_ae73dfc179e755891224f5e1c474e4c49"><div class="ttname"><a href="class_a_i_player.html#ae73dfc179e755891224f5e1c474e4c49">AIPlayer::States</a></div><div class="ttdeci">States</div><div class="ttdoc">States for AIPlayer. </div><div class="ttdef"><b>Definition:</b> AIPlayer.h:75</div></div>
<div class="ttc" id="class_game_configuration_html"><div class="ttname"><a href="class_game_configuration.html">GameConfiguration</a></div><div class="ttdoc">Class for holding game configuration parameters. </div><div class="ttdef"><b>Definition:</b> GameConfiguration.h:84</div></div>
<div class="ttc" id="class_a_i_player_html_ae73dfc179e755891224f5e1c474e4c49a6d239235c0079eeb034a336aa7045d66"><div class="ttname"><a href="class_a_i_player.html#ae73dfc179e755891224f5e1c474e4c49a6d239235c0079eeb034a336aa7045d66">AIPlayer::PLAYING</a></div><div class="ttdoc">Playing own turn. </div><div class="ttdef"><b>Definition:</b> AIPlayer.h:78</div></div>
<div class="ttc" id="class_a_i_player_html_ad6527637a5c7015c1629771fa87643a6"><div class="ttname"><a href="class_a_i_player.html#ad6527637a5c7015c1629771fa87643a6">AIPlayer::m_timeoutExpirationTime</a></div><div class="ttdeci">std::chrono::high_resolution_clock::time_point m_timeoutExpirationTime</div><div class="ttdoc">Timeout timer (. </div><div class="ttdef"><b>Definition:</b> AIPlayer.h:173</div></div>
<div class="ttc" id="class_a_i_player_html_aa9bf852bdff2b165a002ace01bfad913"><div class="ttname"><a href="class_a_i_player.html#aa9bf852bdff2b165a002ace01bfad913">AIPlayer::onGameOver</a></div><div class="ttdeci">virtual void onGameOver(GameState, PlayerColor) override</div><div class="ttdoc">Called when a game started with onGameStart is over. </div><div class="ttdef"><b>Definition:</b> AIPlayer.cpp:303</div></div>
<div class="ttc" id="class_a_i_player_html_a8ac7018369f552328f40ff95fd839e2e"><div class="ttname"><a href="class_a_i_player.html#a8ac7018369f552328f40ff95fd839e2e">AIPlayer::searchForPromisedTurn</a></div><div class="ttdeci">void searchForPromisedTurn()</div><div class="ttdoc">Use negamax to iteratively search for the turn an fulfill with best found. </div><div class="ttdef"><b>Definition:</b> AIPlayer.cpp:197</div></div>
<div class="ttc" id="class_a_i_player_html_a044e02a8feb80a90490b5ec2ced61fca"><div class="ttname"><a href="class_a_i_player.html#a044e02a8feb80a90490b5ec2ced61fca">AIPlayer::ponder</a></div><div class="ttdeci">void ponder()</div><div class="ttdoc">State between turns. </div><div class="ttdef"><b>Definition:</b> AIPlayer.cpp:267</div></div>
<div class="ttc" id="class_turn_html"><div class="ttname"><a href="class_turn.html">Turn</a></div><div class="ttdoc">Represents a chess turn. </div><div class="ttdef"><b>Definition:</b> Turn.h:40</div></div>
<div class="ttc" id="class_a_i_player_html_a20a4f44cd6a8bbccec3dfeb53a09aba7"><div class="ttname"><a href="class_a_i_player.html#a20a4f44cd6a8bbccec3dfeb53a09aba7">AIPlayer::performIterativeDeepening</a></div><div class="ttdeci">void performIterativeDeepening()</div><div class="ttdoc">Use negamax while discarding its results to fill transposition table. </div><div class="ttdef"><b>Definition:</b> AIPlayer.cpp:280</div></div>
<div class="ttc" id="class_a_i_player_html_af1d120a400063b1a8b374c0a17aa20a3"><div class="ttname"><a href="class_a_i_player.html#af1d120a400063b1a8b374c0a17aa20a3">AIPlayer::m_hasWinningMove</a></div><div class="ttdeci">bool m_hasWinningMove</div><div class="ttdoc">True if the AI has found a way to win. </div><div class="ttdef"><b>Definition:</b> AIPlayer.h:179</div></div>
<div class="ttc" id="class_a_i_player_html_a622ad402fe79380c8c9bbc3d37fffc0d"><div class="ttname"><a href="class_a_i_player.html#a622ad402fe79380c8c9bbc3d37fffc0d">AIPlayer::onGameStart</a></div><div class="ttdeci">virtual void onGameStart(GameState state, GameConfiguration config) override</div><div class="ttdoc">Called when the game starts. </div><div class="ttdef"><b>Definition:</b> AIPlayer.cpp:84</div></div>
<div class="ttc" id="class_a_i_player_html_a2d3ec6323cc897822a7caf8b293fd2b8"><div class="ttname"><a href="class_a_i_player.html#a2d3ec6323cc897822a7caf8b293fd2b8">AIPlayer::m_color</a></div><div class="ttdeci">PlayerColor m_color</div><div class="ttdoc">Color the AI is playing as. </div><div class="ttdef"><b>Definition:</b> AIPlayer.h:155</div></div>
<div class="ttc" id="class_a_i_player_html_acf5361ba43ee265214109a6ed83bb683"><div class="ttname"><a href="class_a_i_player.html#acf5361ba43ee265214109a6ed83bb683">AIPlayer::tryFindPromisedTurnInOpeningBook</a></div><div class="ttdeci">bool tryFindPromisedTurnInOpeningBook()</div><div class="ttdoc">Search opening book and fulfill promise if possible. If not return false. </div><div class="ttdef"><b>Definition:</b> AIPlayer.cpp:134</div></div>
<div class="ttc" id="class_negamax_html"><div class="ttname"><a href="class_negamax.html">Negamax&lt; GameState, true, true, true &gt;</a></div></div>
<div class="ttc" id="class_a_i_player_html"><div class="ttname"><a href="class_a_i_player.html">AIPlayer</a></div><div class="ttdoc">Artificial intelligence player implementation. </div><div class="ttdef"><b>Definition:</b> AIPlayer.h:46</div></div>
<div class="ttc" id="class_a_i_player_html_ae73dfc179e755891224f5e1c474e4c49aa69fe1c54e5531047a05e3cefbdbc9da"><div class="ttname"><a href="class_a_i_player.html#ae73dfc179e755891224f5e1c474e4c49aa69fe1c54e5531047a05e3cefbdbc9da">AIPlayer::PONDERING</a></div><div class="ttdoc">Pondering during enemies turn. </div><div class="ttdef"><b>Definition:</b> AIPlayer.h:77</div></div>
<div class="ttc" id="class_a_i_player_html_a3572a55bf4b787c84e0380891679ba86"><div class="ttname"><a href="class_a_i_player.html#a3572a55bf4b787c84e0380891679ba86">AIPlayer::m_gameState</a></div><div class="ttdeci">GameState m_gameState</div><div class="ttdoc">Last notion of game state for the AI. </div><div class="ttdef"><b>Definition:</b> AIPlayer.h:147</div></div>
<div class="ttc" id="class_abstract_player_html"><div class="ttname"><a href="class_abstract_player.html">AbstractPlayer</a></div><div class="ttdoc">Class a player has to implement to interact with the GameLogic. </div><div class="ttdef"><b>Definition:</b> AbstractPlayer.h:49</div></div>
<div class="ttc" id="class_polyglot_book_html"><div class="ttname"><a href="class_polyglot_book.html">PolyglotBook</a></div><div class="ttdoc">Class able to lookup entries from a polyglot opening file. </div><div class="ttdef"><b>Definition:</b> PolyglotBook.h:78</div></div>
<div class="ttc" id="class_a_i_player_html_a9f7ebdaa567caa1fc07bbe8c700546a2"><div class="ttname"><a href="class_a_i_player.html#a9f7ebdaa567caa1fc07bbe8c700546a2">AIPlayer::doAbortTurn</a></div><div class="ttdeci">virtual void doAbortTurn() override</div><div class="ttdoc">Asks the player to abort a turn asked for with doMakeTurn. </div><div class="ttdef"><b>Definition:</b> AIPlayer.cpp:130</div></div>
<div class="ttc" id="class_a_i_player_html_a761a3083f8aff7dbe2158146e65d7b5d"><div class="ttname"><a href="class_a_i_player.html#a761a3083f8aff7dbe2158146e65d7b5d">AIPlayer::m_playerState</a></div><div class="ttdeci">std::atomic&lt; States &gt; m_playerState</div><div class="ttdoc">State of the AI. </div><div class="ttdef"><b>Definition:</b> AIPlayer.h:142</div></div>
<div class="ttc" id="class_a_i_player_html_a96ef820fd422af8d553ea31b9e07464b"><div class="ttname"><a href="class_a_i_player.html#a96ef820fd422af8d553ea31b9e07464b">AIPlayer::canStayInState</a></div><div class="ttdeci">bool canStayInState(States currentState)</div><div class="ttdoc">Returns false if a time limit expired or the current state must be left. </div><div class="ttdef"><b>Definition:</b> AIPlayer.cpp:259</div></div>
<div class="ttc" id="class_a_i_player_html_adbfedcaa126c498fb64f626bfb86b36b"><div class="ttname"><a href="class_a_i_player.html#adbfedcaa126c498fb64f626bfb86b36b">AIPlayer::m_openingBook</a></div><div class="ttdeci">PolyglotBook m_openingBook</div><div class="ttdoc">Opening book (potentially unititialized) </div><div class="ttdef"><b>Definition:</b> AIPlayer.h:163</div></div>
<div class="ttc" id="class_a_i_player_html_a14d7c67a18fb8419399db94768d349e5"><div class="ttname"><a href="class_a_i_player.html#a14d7c67a18fb8419399db94768d349e5">AIPlayer::m_stateMutex</a></div><div class="ttdeci">std::mutex m_stateMutex</div><div class="ttdoc">Mutex for m_playerState. </div><div class="ttdef"><b>Definition:</b> AIPlayer.h:144</div></div>
<div class="ttc" id="class_a_i_player_html_acc5941729e02bae189f10d3a8448d043"><div class="ttname"><a href="class_a_i_player.html#acc5941729e02bae189f10d3a8448d043">AIPlayer::play</a></div><div class="ttdeci">void play()</div><div class="ttdoc">State used when asked to make a turn. </div><div class="ttdef"><b>Definition:</b> AIPlayer.cpp:220</div></div>
<div class="ttc" id="class_a_i_player_html_a0de4ef109b29c2a74f70221727284a93"><div class="ttname"><a href="class_a_i_player.html#a0de4ef109b29c2a74f70221727284a93">AIPlayer::performSearchIteration</a></div><div class="ttdeci">boost::optional&lt; Turn &gt; performSearchIteration(size_t depth, GameState &amp;state, States aiState)</div><div class="ttdoc">Performs an abortable negamax search up to the given depth. </div><div class="ttdef"><b>Definition:</b> AIPlayer.cpp:232</div></div>
<div class="ttc" id="class_a_i_player_html_ae73dfc179e755891224f5e1c474e4c49a249289b0db864b72a1ae11106059e786"><div class="ttname"><a href="class_a_i_player.html#ae73dfc179e755891224f5e1c474e4c49a249289b0db864b72a1ae11106059e786">AIPlayer::PREPARATION</a></div><div class="ttdoc">Game preparation phase. </div><div class="ttdef"><b>Definition:</b> AIPlayer.h:76</div></div>
<div class="ttc" id="class_a_i_player_html_aab14d3cfd5bd43c65ca7b18da36f329a"><div class="ttname"><a href="class_a_i_player.html#aab14d3cfd5bd43c65ca7b18da36f329a">AIPlayer::m_outOfBook</a></div><div class="ttdeci">bool m_outOfBook</div><div class="ttdoc">Indicates that we had a miss on the book and no longer use it. </div><div class="ttdef"><b>Definition:</b> AIPlayer.h:165</div></div>
<div class="ttc" id="class_a_i_player_html_a0e7d916aa3f046ee25ffd72d96fde192"><div class="ttname"><a href="class_a_i_player.html#a0e7d916aa3f046ee25ffd72d96fde192">AIPlayer::m_config</a></div><div class="ttdeci">const AIConfiguration m_config</div><div class="ttdoc">AI configuration. </div><div class="ttdef"><b>Definition:</b> AIPlayer.h:176</div></div>
<div class="ttc" id="class_a_i_player_html_a523158ae141f8c4c454a1b22849098be"><div class="ttname"><a href="class_a_i_player.html#a523158ae141f8c4c454a1b22849098be">AIPlayer::changeState</a></div><div class="ttdeci">void changeState(States newState)</div><div class="ttdoc">Changes AIPlayer state. </div><div class="ttdef"><b>Definition:</b> AIPlayer.cpp:311</div></div>
<div class="ttc" id="class_a_i_player_html_a208377db74365b4c3caa87ef75740773"><div class="ttname"><a href="class_a_i_player.html#a208377db74365b4c3caa87ef75740773">AIPlayer::m_maxTimeForTurn</a></div><div class="ttdeci">std::chrono::seconds m_maxTimeForTurn</div><div class="ttdoc">Maximum time usable for turn. </div><div class="ttdef"><b>Definition:</b> AIPlayer.h:170</div></div>
<div class="ttc" id="class_a_i_player_html_a109b2f4b418e7196a93bc391f20ce081"><div class="ttname"><a href="class_a_i_player.html#a109b2f4b418e7196a93bc391f20ce081">AIPlayer::run</a></div><div class="ttdeci">void run()</div><div class="ttdoc">Executes AIPlayer state machine choosing to play, ponder or stop. </div><div class="ttdef"><b>Definition:</b> AIPlayer.cpp:292</div></div>
<div class="ttc" id="class_a_i_player_html_acbf9428bb0dda9a48cc8154dc4011383"><div class="ttname"><a href="class_a_i_player.html#acbf9428bb0dda9a48cc8154dc4011383">AIPlayer::m_thread</a></div><div class="ttdeci">std::thread m_thread</div><div class="ttdoc">Thread the AI is run on. </div><div class="ttdef"><b>Definition:</b> AIPlayer.h:160</div></div>
<div class="ttc" id="class_a_i_player_html_ae73dfc179e755891224f5e1c474e4c49a50d12883ac67f10acff9c41fcfbcc445"><div class="ttname"><a href="class_a_i_player.html#ae73dfc179e755891224f5e1c474e4c49a50d12883ac67f10acff9c41fcfbcc445">AIPlayer::STOPPED</a></div><div class="ttdoc">Stopped operations. </div><div class="ttdef"><b>Definition:</b> AIPlayer.h:79</div></div>
<div class="ttc" id="class_a_i_player_html_a865e58555ff227cd1a63b8c9b6327799"><div class="ttname"><a href="class_a_i_player.html#a865e58555ff227cd1a63b8c9b6327799">AIPlayer::getState</a></div><div class="ttdeci">States getState() const </div><div class="ttdef"><b>Definition:</b> AIPlayer.cpp:307</div></div>
<div class="ttc" id="class_a_i_player_html_a8fbcee7ed68698889f139e378a9b0771"><div class="ttname"><a href="class_a_i_player.html#a8fbcee7ed68698889f139e378a9b0771">AIPlayer::onSetColor</a></div><div class="ttdeci">virtual void onSetColor(PlayerColor color) override</div><div class="ttdoc">Notifies that player what color he will be playing. </div><div class="ttdef"><b>Definition:</b> AIPlayer.cpp:79</div></div>
<div class="ttc" id="class_a_i_player_html_a81dacee1ef54bbcbe984073a6e8bfe4e"><div class="ttname"><a href="class_a_i_player.html#a81dacee1ef54bbcbe984073a6e8bfe4e">AIPlayer::m_promisedTurn</a></div><div class="ttdeci">std::promise&lt; Turn &gt; m_promisedTurn</div><div class="ttdoc">Holds the promise during fulfillment (. </div><div class="ttdef"><b>Definition:</b> AIPlayer.h:136</div></div>
<div class="ttc" id="class_a_i_player_html_a88d1f4adf011416ed9826787cab330f0"><div class="ttname"><a href="class_a_i_player.html#a88d1f4adf011416ed9826787cab330f0">AIPlayer::m_ponderGameState</a></div><div class="ttdeci">GameState m_ponderGameState</div><div class="ttdoc">State for the AI to ponder on between turns. </div><div class="ttdef"><b>Definition:</b> AIPlayer.h:149</div></div>
<div class="ttc" id="class_a_i_player_html_aaa68fd341c6194df95277cca158ce072"><div class="ttname"><a href="class_a_i_player.html#aaa68fd341c6194df95277cca158ce072">AIPlayer::m_maxIterationDepth</a></div><div class="ttdeci">size_t m_maxIterationDepth</div><div class="ttdoc">Depth limit for iterative deepening. </div><div class="ttdef"><b>Definition:</b> AIPlayer.h:168</div></div>
<div class="ttc" id="class_a_i_player_html_a336f11fe775c5f06275359f1b58d2c66"><div class="ttname"><a href="class_a_i_player.html#a336f11fe775c5f06275359f1b58d2c66">AIPlayer::start</a></div><div class="ttdeci">void start()</div><div class="ttdoc">Starts the AIPlayer thread. </div><div class="ttdef"><b>Definition:</b> AIPlayer.cpp:63</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Mar 9 2014 23:12:55 for 3dchess by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
